#include "StaticJavaLib.h"
#include "gc.h"
struct ArrayAccessVariable{
};

void main(int argc,char** argv){
  int i;
  int* a;
  gc_add_root_node(&a);
  int* b;
  gc_add_root_node(&b);
  i = 0;
  a = (int*)gc_malloc(sizeof(int)*3);
  *(a+0) = 1;
  *(a+1) = 2;
  *(a+2) = 3;
  b = (int*)gc_malloc(sizeof(int)*(3));
  ;
  b[i] = a[a[i]];
  b[a[i] * i] = a[b[a[i]]];
  gc_free_root_node(&a);
  gc_free_root_node(&b);
  gc_recycle();
}
